package compositeExpression_Factb_FactbExpr;

import visitor.Visitor;
import compositeExpression.Expr;
import compositeExpression.Expression;
import compositeExpression_Factb.FactbExpr;

public class RelopEq extends FactbExpr {
	
	public RelopEq(Expr left, Expr right) {

        if (left == null || right == null) {

            throw new NullPointerException();
        }

        this.left = left;
        this.right = right;
    }
	
	
	@Override
    public void accept(Visitor v) {
        v.visit(this);
    }
	
	 @Override
	    public String toString() {

	        StringBuilder sb = new StringBuilder();

	        sb.append(super.getleft()).append(" == ").append(super.getRight());
	        return sb.toString();
	    }
	 
	 @Override
	    public void add(Expression e) {
	        throw new UnsupportedOperationException("Not supported yet.");
	    }


}
